<?php
    require_once 'FrontController.php';
    require_once 'Autoloader.php';

    /**
     * CLASSE DA APLICAÇÃO (INICIA-SE OBJETOS, BOOTSTRAP, ETC)
     */
    class System_Application
    {
        private $frontController;
        private $autoloader;
        private $url;
        
        /**
         * layout da aplicacao
         * @var [type]
         */
        private $layout;

        public function __construct() 
        {   
            /**
             * ATIVA O AUTOLOADER
             */
            $this->autoloader = new System_Autoloader();                 
        }
        
        /**
         * RODA A APLICACAO
         */
        public function run()
        {

        }

         //----------------GETTERS & SETTERS ----------------
        public function setURL($url)
        {
            $this->url = $url;
            /**
             * ATIVA O FRONT CONTROLLER
             */
            $this->frontController = System_FrontController::getInstance();
            $this->frontController->setMVC($url[0],$url[1]);
        }
        public function getURL()
        {
            return $this->url;
        }
        //----------------FIM GETTERS & SETTERS ----------------
       
    }
?>